﻿using Cars.Console.Common;
using Cars.Console.Geometry;

namespace Cars.Console.Models
{
    public abstract class Car : ICar, IRenderable
    {
        protected Coordinate currentPosition;

        public Coordinate Coordinates
        {
            get
            {
                return new Coordinate(this.currentPosition.X, this.currentPosition.Y);
            }
        }

        public Car(Coordinate start)
        {
            this.currentPosition = start;
        }

        public string Symbol
        {
            get
            {
                return "*";
            }
        }

        public abstract void Move();
    }
}
